﻿using System;
using System.Collections.Generic;
using ContactManager.Models;
using System.Linq;
using ContactManager.Models.Entities;
using ContactManager.Models.Repositories;

namespace ContactManager.Tests.Models{
	public class FakeGroupManagerRepository : GroupManagerRepository
	{
        private IList<ContactGroup> _groups = new List<ContactGroup>();

        
        // ContactGroup methods

        public ContactGroup CreateGroup(ContactGroup groupToCreate)
        {
            _groups.Add(groupToCreate);
            return groupToCreate;
        }

        public IEnumerable<ContactGroup> ListGroups()
        {
            return _groups;
        }
        public ContactGroup GetGroup(System.Guid groupId)
        {
            throw new NotImplementedException();
        }

        public ContactGroup GetFirstGroup_()
        {
            throw new NotImplementedException();
        }
        public IQueryable<ContactGroup> FindAllGroups()
        {
            throw new NotImplementedException();
        }

       


        public void DeleteGroup(ContactGroup groupToDelete)
        {
            throw new NotImplementedException();
        }
        public ContactGroup EditGroup(ContactGroup groupToEdit)
        {
            throw new NotImplementedException();
        }

    }
}
